package com.yunxin.core.domain.model.channel;

/**
 * @author zero°
 * @since 2023-07-12
 */
public interface ChannelPromotionRepository {

    /**
     * 新增渠道推广
     * @param channelPromotion channelPromotion
     * @return boolean
     */
    boolean saveChannelPromotion(ChannelPromotion channelPromotion);

    /**
     * 更新渠道推广
     * @param channelPromotion channelPromotion
     * @return boolean
     */
    boolean updateChannelPromotion(ChannelPromotion channelPromotion);

    /**
     * 根据id查询渠道推广信息
     * @param id id
     * @return ChannelPromotion
     */
    ChannelPromotion getChannelPromotionById(Long id);

    /**
     * 根据id 获取渠道推广保存结果(是否可以推广)
     * @param id id
     * @return boolean
     */
    boolean getChannelPromotionSaveResult(Long id);
}
